<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.7"/>
<title>Catharsis.NET.Commons: Catharsis.Commons.TypeExtensions Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Catharsis.NET.Commons
   &#160;<span id="projectnumber">2.8</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.7 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('class_catharsis_1_1_commons_1_1_type_extensions.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Properties</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="class_catharsis_1_1_commons_1_1_type_extensions-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">Catharsis.Commons.TypeExtensions Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p> 
 <a href="class_catharsis_1_1_commons_1_1_type_extensions.html#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:aa3765a6043e7cf9f0433edbf3611c5c5"><td class="memItemLeft" align="right" valign="top">static EventInfo&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_catharsis_1_1_commons_1_1_type_extensions.html#aa3765a6043e7cf9f0433edbf3611c5c5">AnyEvent</a> (this Type self, string name)</td></tr>
<tr class="separator:aa3765a6043e7cf9f0433edbf3611c5c5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0b9ef6cc5b09299e0033bf878acacb43"><td class="memItemLeft" align="right" valign="top">static FieldInfo&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_catharsis_1_1_commons_1_1_type_extensions.html#a0b9ef6cc5b09299e0033bf878acacb43">AnyField</a> (this Type self, string name)</td></tr>
<tr class="separator:a0b9ef6cc5b09299e0033bf878acacb43"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7ec8e2fb5df49b4ff8bb168c84116689"><td class="memItemLeft" align="right" valign="top">static MethodInfo&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_catharsis_1_1_commons_1_1_type_extensions.html#a7ec8e2fb5df49b4ff8bb168c84116689">AnyMethod</a> (this Type self, string name)</td></tr>
<tr class="separator:a7ec8e2fb5df49b4ff8bb168c84116689"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5b2d3948db19a360808e446b17810ad5"><td class="memItemLeft" align="right" valign="top">static PropertyInfo&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_catharsis_1_1_commons_1_1_type_extensions.html#a5b2d3948db19a360808e446b17810ad5">AnyProperty</a> (this Type self, string name)</td></tr>
<tr class="separator:a5b2d3948db19a360808e446b17810ad5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abfe001528f12c29a33bb3b7c3e42bb07"><td class="memItemLeft" align="right" valign="top">static ConstructorInfo&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_catharsis_1_1_commons_1_1_type_extensions.html#abfe001528f12c29a33bb3b7c3e42bb07">DefaultConstructor</a> (this Type self)</td></tr>
<tr class="separator:abfe001528f12c29a33bb3b7c3e42bb07"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae3571c861306c2f9de109962af11b1b6"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_catharsis_1_1_commons_1_1_type_extensions.html#ae3571c861306c2f9de109962af11b1b6">HasField</a> (this Type self, string name)</td></tr>
<tr class="separator:ae3571c861306c2f9de109962af11b1b6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a39be08849acc7b5f7abe224063048b0f"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_catharsis_1_1_commons_1_1_type_extensions.html#a39be08849acc7b5f7abe224063048b0f">HasMethod</a> (this Type self, string name)</td></tr>
<tr class="separator:a39be08849acc7b5f7abe224063048b0f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9d5b2839f58dd0cc30bcd70265cfebbc"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_catharsis_1_1_commons_1_1_type_extensions.html#a9d5b2839f58dd0cc30bcd70265cfebbc">HasProperty</a> (this Type self, string name)</td></tr>
<tr class="separator:a9d5b2839f58dd0cc30bcd70265cfebbc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aef7f8fab60ae868fb8da61692510e738"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_catharsis_1_1_commons_1_1_type_extensions.html#aef7f8fab60ae868fb8da61692510e738">Implements</a> (this Type self, Type interfaceType)</td></tr>
<tr class="separator:aef7f8fab60ae868fb8da61692510e738"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0ece117d72a00a980df658edcdc82813"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_catharsis_1_1_commons_1_1_type_extensions.html#a0ece117d72a00a980df658edcdc82813">Implements&lt; T &gt;</a> (this Type self)</td></tr>
<tr class="separator:a0ece117d72a00a980df658edcdc82813"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac36826ff3b06f355a503f87bff28b7c3"><td class="memItemLeft" align="right" valign="top">static IEnumerable&lt; Type &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_catharsis_1_1_commons_1_1_type_extensions.html#ac36826ff3b06f355a503f87bff28b7c3">Inherits</a> (this Type self)</td></tr>
<tr class="separator:ac36826ff3b06f355a503f87bff28b7c3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a968884c7db4057996be51fd65195edf9"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_catharsis_1_1_commons_1_1_type_extensions.html#a968884c7db4057996be51fd65195edf9">IsAnonymous</a> (this Type self)</td></tr>
<tr class="separator:a968884c7db4057996be51fd65195edf9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8e5c219c91fa4f4b9c285d0822048860"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_catharsis_1_1_commons_1_1_type_extensions.html#a8e5c219c91fa4f4b9c285d0822048860">IsAssignableTo&lt; T &gt;</a> (this Type self)</td></tr>
<tr class="separator:a8e5c219c91fa4f4b9c285d0822048860"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5ee1b96a44e39bbd5b8b6068ba5d524b"><td class="memItemLeft" align="right" valign="top">static object&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_catharsis_1_1_commons_1_1_type_extensions.html#a5ee1b96a44e39bbd5b8b6068ba5d524b">NewInstance</a> (this Type self, params object[] args)</td></tr>
<tr class="separator:a5ee1b96a44e39bbd5b8b6068ba5d524b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1ec2ab01753e298a966f5f0f1b595080"><td class="memItemLeft" align="right" valign="top">static object&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_catharsis_1_1_commons_1_1_type_extensions.html#a1ec2ab01753e298a966f5f0f1b595080">NewInstance</a> (this Type self, IDictionary&lt; string, object &gt; properties)</td></tr>
<tr class="separator:a1ec2ab01753e298a966f5f0f1b595080"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a41d604cd8631a6ed01750a970aa49539"><td class="memItemLeft" align="right" valign="top">static object&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_catharsis_1_1_commons_1_1_type_extensions.html#a41d604cd8631a6ed01750a970aa49539">NewInstance</a> (this Type self, object properties)</td></tr>
<tr class="separator:a41d604cd8631a6ed01750a970aa49539"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9e63d732d4e644dc19b670eb99b2dcb6"><td class="memItemLeft" align="right" valign="top">static PropertyInfo[]&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_catharsis_1_1_commons_1_1_type_extensions.html#a9e63d732d4e644dc19b670eb99b2dcb6">Properties</a> (this Type self)</td></tr>
<tr class="separator:a9e63d732d4e644dc19b670eb99b2dcb6"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Set of extensions methods for class Type.</p>
<dl class="section see"><dt>See also</dt><dd>Type</dd></dl>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="aa3765a6043e7cf9f0433edbf3611c5c5"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static EventInfo Catharsis.Commons.TypeExtensions.AnyEvent </td>
          <td>(</td>
          <td class="paramtype">this Type&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>name</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Searches for a named event, declared within a specified Type.</p>
<p>Returns EventInfo object, representing either instance or static event with either private or public access level.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">self</td><td>Type whose event is to be located.</td></tr>
    <tr><td class="paramname">name</td><td>Unique name of event.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>EventInfo object representing the event of <em>self</em> . If event cannot be found, returns <code>null</code>.</dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">ArgumentNullException</td><td>If either <em>self</em>  or <em>name</em>  is a <code>null</code> reference.</td></tr>
    <tr><td class="paramname">ArgumentException</td><td>If <em>name</em>  is string.Empty string.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd>Type.GetEvent(string, BindingFlags)</dd></dl>

</div>
</div>
<a class="anchor" id="a0b9ef6cc5b09299e0033bf878acacb43"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static FieldInfo Catharsis.Commons.TypeExtensions.AnyField </td>
          <td>(</td>
          <td class="paramtype">this Type&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>name</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Searches for a named field, declared within a specified Type.</p>
<p>Returns FieldInfo object, representing either instance or static field with either private or public access level.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">self</td><td>Type whose field is to be located.</td></tr>
    <tr><td class="paramname">name</td><td>Unique name of field.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>FieldInfo object representing the field of <em>self</em> . If field cannot be found, returns <code>null</code>.</dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">ArgumentNullException</td><td>If either <em>self</em>  or <em>name</em>  is a <code>null</code> reference.</td></tr>
    <tr><td class="paramname">ArgumentException</td><td>If <em>name</em>  is string.Empty string.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd>Type.GetField(string, BindingFlags)</dd></dl>

</div>
</div>
<a class="anchor" id="a7ec8e2fb5df49b4ff8bb168c84116689"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static MethodInfo Catharsis.Commons.TypeExtensions.AnyMethod </td>
          <td>(</td>
          <td class="paramtype">this Type&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>name</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Searches for a named method, declared within a specified Type.</p>
<p>Returns MethodInfo object, representing either instance or static method with either private or public access level.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">self</td><td>Type whose method is to be located.</td></tr>
    <tr><td class="paramname">name</td><td>Unique name of method.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>MethodInfo object representing the method of <em>self</em> . If method cannot be found, returns <code>null</code>.</dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">ArgumentNullException</td><td>If either <em>self</em>  or <em>name</em>  is a <code>null</code> reference.</td></tr>
    <tr><td class="paramname">ArgumentException</td><td>If <em>name</em>  is string.Empty string.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd>Type.GetMethod(string, BindingFlags)</dd></dl>

</div>
</div>
<a class="anchor" id="a5b2d3948db19a360808e446b17810ad5"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static PropertyInfo Catharsis.Commons.TypeExtensions.AnyProperty </td>
          <td>(</td>
          <td class="paramtype">this Type&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>name</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Searches for a named property, declared within a specified Type.</p>
<p>Returns PropertyInfo object, representing either instance or static property with either private or public access level.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">self</td><td>Type whose property is to be located.</td></tr>
    <tr><td class="paramname">name</td><td>Unique name of property.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>PropertyInfo object representing the property of <em>self</em> . If property cannot be found, returns <code>null</code>.</dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">ArgumentNullException</td><td>If either <em>self</em>  or <em>name</em>  is a <code>null</code> reference.</td></tr>
    <tr><td class="paramname">ArgumentException</td><td>If <em>name</em>  is string.Empty string.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd>Type.GetProperty(string, BindingFlags)</dd></dl>

</div>
</div>
<a class="anchor" id="abfe001528f12c29a33bb3b7c3e42bb07"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static ConstructorInfo Catharsis.Commons.TypeExtensions.DefaultConstructor </td>
          <td>(</td>
          <td class="paramtype">this Type&#160;</td>
          <td class="paramname"><em>self</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Searches for a default no-arguments constructor, declared within a specified Type.</p>
<p>Returns ConstructorInfo object, representing no-arguments constructor.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">self</td><td>Type whose constructor is to be located.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>ConstructorInfo object representing no-arguments constructor of <em>self</em> . If constructor cannot be found, returns <code>null</code>.</dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">ArgumentNullException</td><td>If <em>self</em>  is a <code>null</code> reference.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd>Type.GetConstructor(BindingFlags, Binder, Type[], ParameterModifier[])</dd></dl>

</div>
</div>
<a class="anchor" id="ae3571c861306c2f9de109962af11b1b6"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static bool Catharsis.Commons.TypeExtensions.HasField </td>
          <td>(</td>
          <td class="paramtype">this Type&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>name</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Determines whether there is a named field, declared within a specified Type.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">self</td><td>Type whose field is to be located.</td></tr>
    <tr><td class="paramname">name</td><td>Unique name of field.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><code>true</code> if either instance or static field with either private or public access level is declared for <em>self</em> , <code>false</code> otherwise.</dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">ArgumentNullException</td><td>If either <em>self</em>  or <em>name</em>  is a <code>null</code> reference.</td></tr>
    <tr><td class="paramname">ArgumentException</td><td>If <em>name</em>  is string.Empty string.</td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a39be08849acc7b5f7abe224063048b0f"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static bool Catharsis.Commons.TypeExtensions.HasMethod </td>
          <td>(</td>
          <td class="paramtype">this Type&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>name</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Determines whether there is a named method, declared within a specified Type.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">self</td><td>Type whose method is to be located.</td></tr>
    <tr><td class="paramname">name</td><td>Unique name of method.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><code>true</code> if either instance or static method with either private or public access level is declared for <em>self</em> , <code>false</code> otherwise.</dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">ArgumentNullException</td><td>If either <em>self</em>  or <em>name</em>  is a <code>null</code> reference.</td></tr>
    <tr><td class="paramname">ArgumentException</td><td>If <em>name</em>  is string.Empty string.</td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a9d5b2839f58dd0cc30bcd70265cfebbc"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static bool Catharsis.Commons.TypeExtensions.HasProperty </td>
          <td>(</td>
          <td class="paramtype">this Type&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>name</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Determines whether there is a named property, declared within a specified Type.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">self</td><td>Type whose property is to be located.</td></tr>
    <tr><td class="paramname">name</td><td>Unique name of property.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><code>true</code> if either instance or static property with either private or public access level is declared for <em>self</em> , <code>false</code> otherwise.</dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">ArgumentNullException</td><td>If either <em>self</em>  or <em>name</em>  is a <code>null</code> reference.</td></tr>
    <tr><td class="paramname">ArgumentException</td><td>If <em>name</em>  is string.Empty string.</td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="aef7f8fab60ae868fb8da61692510e738"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static bool Catharsis.Commons.TypeExtensions.Implements </td>
          <td>(</td>
          <td class="paramtype">this Type&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Type&#160;</td>
          <td class="paramname"><em>interfaceType</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Determines whether a Type implements specified interface.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">self</td><td>The type to evaluate.</td></tr>
    <tr><td class="paramname">interfaceType</td><td>Interface that must be implemented by <em>self</em> .</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><code>true</code> if <em>self</em>  implements interface of type <em>interfaceType</em> , <code>false</code> otherwise.</dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">ArgumentNullException</td><td>If either <em>self</em>  or <em>interfaceType</em>  is a <code>null</code> reference.</td></tr>
    <tr><td class="paramname">ArgumentException</td><td>If <em>interfaceType</em>  does not represent interface.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd>Type.GetInterface(string, bool), Implements{INTERFACE}(Type)</dd></dl>

</div>
</div>
<a class="anchor" id="a0ece117d72a00a980df658edcdc82813"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static bool <a class="el" href="class_catharsis_1_1_commons_1_1_type_extensions.html#aef7f8fab60ae868fb8da61692510e738">Catharsis.Commons.TypeExtensions.Implements</a>&lt; T &gt; </td>
          <td>(</td>
          <td class="paramtype">this Type&#160;</td>
          <td class="paramname"><em>self</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Determines whether a Type implements specified interface.</p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">T</td><td>Interface that must be implemented by <em>self</em> .</td></tr>
  </table>
  </dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">self</td><td>The type to evaluate.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><code>true</code> if <em>self</em>  implements interface of type <em>T</em> , <code>false</code> otherwise.</dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">ArgumentNullException</td><td>If <em>self</em>  is a <code>null</code> reference.</td></tr>
    <tr><td class="paramname">ArgumentException</td><td>If <em>T</em>  type does not represent interface.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd>Type.GetInterface(string, bool), Implements(Type, Type)</dd></dl>

</div>
</div>
<a class="anchor" id="ac36826ff3b06f355a503f87bff28b7c3"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static IEnumerable&lt;Type&gt; Catharsis.Commons.TypeExtensions.Inherits </td>
          <td>(</td>
          <td class="paramtype">this Type&#160;</td>
          <td class="paramname"><em>self</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Returns enumerator to iterate over the set of specified Type's base types and implemented interfaces.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">self</td><td>Type, whose ancestors (base types up the inheritance hierarchy) and implemented interfaces are returned.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Enumerator to iterate through <em>self</em> 's base types and interfaces, which it implements.</dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">ArgumentNullException</td><td>If <em>self</em>  is a <code>null</code> reference.</td></tr>
  </table>
  </dd>
</dl>
<p>The order of the base types and interfaces returned is undetermined.</p>
<dl class="section see"><dt>See also</dt><dd>Type.BaseType, Type.GetInterfaces()</dd></dl>

</div>
</div>
<a class="anchor" id="a968884c7db4057996be51fd65195edf9"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static bool Catharsis.Commons.TypeExtensions.IsAnonymous </td>
          <td>(</td>
          <td class="paramtype">this Type&#160;</td>
          <td class="paramname"><em>self</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Determines whether target Type is anonymous one.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">self</td><td>Subject type.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><code>true</code> if <em>self</em>  represents an anonymous Type, <code>false</code> otherwise.</dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">ArgumentNullException</td><td>If <em>self</em>  is a <code>null</code> reference.</td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a8e5c219c91fa4f4b9c285d0822048860"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static bool Catharsis.Commons.TypeExtensions.IsAssignableTo&lt; T &gt; </td>
          <td>(</td>
          <td class="paramtype">this Type&#160;</td>
          <td class="paramname"><em>self</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Determines whether the <em>self</em>  can be assigned to type <em>T</em> , or, in other words, whether the instance of type <em>T</em>  are assignable from <em>self</em> .</p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">T</td><td>Destination type to which the assignment is made.</td></tr>
  </table>
  </dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">self</td><td>Source type for assignment.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><code>true</code> if <em>self</em>  can be assigned to <em>T</em> , <code>false</code> otherwise.</dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">ArgumentNullException</td><td>If <em>self</em>  is a <code>null</code> reference.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd>Type.IsAssignableFrom(Type)</dd></dl>

</div>
</div>
<a class="anchor" id="a5ee1b96a44e39bbd5b8b6068ba5d524b"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static object Catharsis.Commons.TypeExtensions.NewInstance </td>
          <td>(</td>
          <td class="paramtype">this Type&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">params object[]&#160;</td>
          <td class="paramname"><em>args</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Dynamically creates new instance of specified Type, passing a set of parameters for its constructor.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">self</td><td>Type whose instance is to be created.</td></tr>
    <tr><td class="paramname">args</td><td>Optional set of parameters for a constructor of <em>self</em> . Types and number of parameters determine a particular constructor of <em>self</em>  to be invoked.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Newly created instance of <em>self</em> .</dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">ArgumentNullException</td><td>If <em>self</em>  is a <code>null</code> reference.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd>Activator.CreateInstance(Type, BindingFlags, Binder, object[], CultureInfo), NewInstance(Type, IDictionary{string, object}), NewInstance(Type, object)</dd></dl>

</div>
</div>
<a class="anchor" id="a1ec2ab01753e298a966f5f0f1b595080"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static object Catharsis.Commons.TypeExtensions.NewInstance </td>
          <td>(</td>
          <td class="paramtype">this Type&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">IDictionary&lt; string, object &gt;&#160;</td>
          <td class="paramname"><em>properties</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Dynamically creates new instance of specified Type by calling its no-arguments constructor, and sets specified properties on a newly created instance.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">self</td><td>Type whose instance is to be created.</td></tr>
    <tr><td class="paramname">properties</td><td>Collection of properties as a name-value pairs to be set on instance of <em>self</em>  after it has been created.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Newly created instance of <em>self</em>  with set <em>properties</em> .</dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">ArgumentNullException</td><td>If either <em>self</em>  or <em>properties</em>  is a <code>null</code> reference.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd>Activator.CreateInstance(Type, BindingFlags, Binder, object[], CultureInfo), NewInstance(Type, object[]), NewInstance(Type, object)</dd></dl>

</div>
</div>
<a class="anchor" id="a41d604cd8631a6ed01750a970aa49539"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static object Catharsis.Commons.TypeExtensions.NewInstance </td>
          <td>(</td>
          <td class="paramtype">this Type&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">object&#160;</td>
          <td class="paramname"><em>properties</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Dynamically creates new instance of specified Type by calling its no-arguments constructor, and sets specified properties on a newly created instance.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">self</td><td>Type whose instance is to be created.</td></tr>
    <tr><td class="paramname">properties</td><td>Object instance whose public properties values are to be set on a newly created instance of <em>self</em> .</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Newly created instance of <em>self</em>  with set <em>properties</em> .</dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">ArgumentNullException</td><td>If either <em>self</em>  or <em>properties</em>  is a <code>null</code> reference.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd>Activator.CreateInstance(Type, BindingFlags, Binder, object[], CultureInfo), NewInstance(Type, object[]), NewInstance(Type, IDictionary{string, object})</dd></dl>

</div>
</div>
<a class="anchor" id="a9e63d732d4e644dc19b670eb99b2dcb6"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static PropertyInfo [] Catharsis.Commons.TypeExtensions.Properties </td>
          <td>(</td>
          <td class="paramtype">this Type&#160;</td>
          <td class="paramname"><em>self</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Returns an array of either instance or static properties with either private or public access level for specified Type.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">self</td><td>Type whose properties are to be returned.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Set of instance/static properties, declared within a <em>self</em> .</dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">ArgumentNullException</td><td>If <em>self</em>  is a <code>null</code> reference.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd>Type.GetProperties(BindingFlags)</dd></dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespace_catharsis.html">Catharsis</a></li><li class="navelem"><a class="el" href="namespace_catharsis_1_1_commons.html">Commons</a></li><li class="navelem"><a class="el" href="class_catharsis_1_1_commons_1_1_type_extensions.html">TypeExtensions</a></li>
    <li class="footer">Generated on Wed Aug 6 2014 00:10:38 for Catharsis.NET.Commons by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
  </ul>
</div>
</body>
</html>
